const crypto = require('crypto');
const sha = crypto.createHash('sha256');
const str = sha.update('badboss').digest('hex');
console.log(str);
